using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace Momentum
{
    public class mMouse
    {
        public MouseState mouseState;
        SpriteBatch spriteBatch;
        Texture2D mouseTexture;

        public void LoadContent(GraphicsDevice device, ContentManager content)
        {
            spriteBatch = new SpriteBatch(device);
            mouseTexture = content.Load<Texture2D>("Interface/MouseCursor");
            mouseState = Mouse.GetState();
        }

        public void Draw()
        {
            spriteBatch.Begin();
            spriteBatch.Draw(mouseTexture, new Rectangle(mouseState.X - mouseTexture.Width / 2, mouseState.Y - mouseTexture.Height / 2, mouseTexture.Width, mouseTexture.Height), Color.White);
            spriteBatch.End();
        }

        public void Update()
        {
            mouseState = Mouse.GetState();
        }

    }

}
